package cn.com.freelibra.forum.service;

import java.util.HashMap;
import java.util.List;
import java.util.Set;

import cn.com.freelibra.forum.po.User;


public interface UserService {
	public User load(Long id);

	public List<User> byName(String user_name);

	public User byNameAndPassword(String userName,String password); 
	
	public HashMap<String, Object> findbyallresulte(Long id);

	public int registerUser(User user);
	
	public void updateUser(User user);

	User byOpenId(String open_id);

	public List<User> byEmail(String email);

	public Set<String> getRoles(String username);

	public Set<String> getPermissions(String username);

}
